export class BranchQueue {
    private items: string[] = [];

    public push(data: string) {
        this.items.push(data);
    }

    public pop(): string | undefined {
        return this.items.shift();
    }

    public isEmpty(): boolean {
        return this.items.length === 0;
    }

    public size(): number {
        return this.items.length;
    }
}